//
//  UserLoginBottomCell.m
//  CenturyCity
//
//  Created by beisheng03 on 2017/11/27.
//  Copyright © 2017年 beisheng. All rights reserved.
//

#import "UserLoginBottomCell.h"

@interface UserLoginBottomCell()
@property (weak, nonatomic) IBOutlet UIButton *loginBtn;
@property (weak, nonatomic) IBOutlet UIButton *registerBtn;
@property (weak, nonatomic) IBOutlet UIButton *forgotBtn;


@end

@implementation UserLoginBottomCell

- (void)awakeFromNib {
    [super awakeFromNib];
    self.contentView.backgroundColor = [UIColor whiteColor];
    
    self.loginBtn.backgroundColor = themeColor;
    
    self.registerBtn.titleLabel.font = MYFONT(16);
    
    [self.registerBtn setTitleColor:darkGray forState:UIControlStateNormal];
    
    self.forgotBtn.titleLabel.font = MYFONT(16);
    
    [self.forgotBtn setTitleColor:darkGray forState:UIControlStateNormal];

    self.loginBtn.titleLabel.font = MYFONT(19);

    self.loginBtn.layer.cornerRadius = 26;
    
    self.loginBtn.layer.masksToBounds = YES;
}



- (IBAction)loginBtnDidClick:(UIButton *)sender {
    
    if ([self.delegate respondsToSelector:@selector(loginBtnDidTap)]) {
        [self.delegate loginBtnDidTap];
    }
}

- (IBAction)registerBtnDidTap:(UIButton *)sender {
    
    if ([self.delegate respondsToSelector:@selector(registerBtnDidTap)]) {
        [self.delegate registerBtnDidTap];
    }
    
}

- (IBAction)forgotBtnDidTap:(UIButton *)sender {
    
    if ([self.delegate respondsToSelector:@selector(forgotPasswordBtnDidTap)]) {
        [self.delegate forgotPasswordBtnDidTap];
    }

}

//- (void)registerBtnDidTap;

-(void)dealloc{
    
    NSLog(@"%@",self.class);
}


- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
